package com.huawei.statistics.service.member;

import com.huawei.statistics.pojo.member.User;
import com.huawei.statistics.vo.common.HttpResult;

import java.util.List;
import java.util.Map;

/**
 * Created by AB350 on 2017/11/28.
 */
public interface MemberService {

	List<User> getUserByMobile(String mobile, Long companyId);

	List<User> loadAllUser();

	Map<String,Object> getUserReturnMap(Long id);

	List<User> getUserBySpead(Long companyId);

	HttpResult getUserByMobile(String mobile, int page);

	HttpResult getUserByCondition(Map<String, Object> map, int page);

	User getUserByCode(String code);

	HttpResult getScanerByShop(Long shopId);

	List<User> getUserByMemberGroup(Long memberGroup);

	List<User> getBindMobileUser(Long companyId);

	HttpResult getUserById(Long id);

	HttpResult addUser(User user);

	User getUserByIdReturnUser(Long id);

	User getUserByOpenId(String openid);

	HttpResult updateUser(User user);

	HttpResult updateUserCover(User user);

	HttpResult getUserListByAdmin(int cur, int max, Long companyId);

	HttpResult getUserList(Long companyId, int cur, int max);

	Boolean registerMember(String recommenderOpenId, String entity);

	HttpResult getUserByNick(String nick, Long companyId);

	HttpResult getUserByName(String name, Long companyId);

	HttpResult getUserByMoble(String mobile, Long companyId);

	void setMmeberGroup();


}
